import instance, { buildOptions } from "./index";

export async function UserBaseInfo(data: any) {
  const options = buildOptions(data, "hr/user/center", "GET");
  return instance(options);
}

export async function ChangePhone(data: any) {
  const options = buildOptions(data, "hr/user/change_mobile");
  return instance(options);
}

export async function ChangePwd(data: any) {
  const options = buildOptions(data, "hr/user/change_password");
  return instance(options);
}

export async function RoleList() {
  const options = buildOptions("", "hr/user/hr_list", "GET");
  return instance(options);
}

export async function SetHr(data: any) {
  const options = buildOptions(data, "hr/user/set_hr");
  return instance(options);
}

export async function SetHrDep(data: any) {
  const options = buildOptions(data, "hr/user/set_hr_dept");
  return instance(options);
}

export async function DelHr(data: any) {
  const options = buildOptions(data, "hr/user/del_hr");
  return instance(options);
}

export async function Message(data: any) {
  const options = buildOptions(data, "hr/company/message", "GET");
  return instance(options);
}

export async function MessageOneRead(data: any) {
  const options = buildOptions(data, "hr/company/read_one", "GET");
  return instance(options);
}

export async function MessageAllRead() {
  const options = buildOptions("", "hr/company/read_all", "GET");
  return instance(options);
}

export async function SendPhoneCode(data: any) {
  const options = buildOptions(data, "hr/index/send_code");
  return instance(options);
}

export async function VerifyCode(data: any) {
  const options = buildOptions(data, "hr/user/verify_code");
  return instance(options);
}

export async function SetSignPwd(data: any) {
  const options = buildOptions(data, "hr/user/sign_password");
  return instance(options);
}
